package com.chen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 试卷表
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "exam_paper")
public class ExamPaper {

    /**
     * 试卷id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 试卷名
     */
    @TableField(value = "name")
    private String name;

    /**
     * 时长
     */
    @TableField(value = "duration")
    private Integer duration;

    /**
     * 分数
     */
    @TableField(value = "score")
    private Integer score;

    /**
     * 关联年级表
     */
    @TableField(value = "grade_id")
    private Integer gradeId;

    @TableField(value = "division")
    private Integer division;

    /**
     * 难度等级
     */
    @TableField(value = "easy")
    private Integer easy;

}